package com.dzu.easy;

/**
 * @author ZhaoDong
 * @date 2022/11/8 9:41
 * @description 231. 2 的幂
 */
public class Test231 {

    public boolean isPowerOfTwo(int n) {
        return n > 0 && (n & (n - 1)) == 0;
    }

}
